-- GENERATED SPELL FOR [Arcane Aberration] --


function spell0_11480(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(15979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11480', 1000, 1)
end

function spell1_11480(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(22936,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11480', 541, 1)
end

function Sorts_11480(pUnit, Event)
local choix_sorts_11480 = math.random(0, 1)
if choix_sorts_11480 == 0 then
pUnit:RegisterEvent('spell0_11480', 1, 1)
end
if choix_sorts_11480 == 1 then
pUnit:RegisterEvent('spell1_11480', 1, 1)
end
end

function mob11480_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11480', math.random(1500, 3000), 1)
end

function mob11480_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11480_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11480_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11480, 1, 'mob11480_Action')
RegisterUnitEvent(11480, 2, 'mob11480_Leave')
RegisterUnitEvent(11480, 3, 'mob11480_Kill')
RegisterUnitEvent(11480, 4, 'mob11480_Die')
